
<!DOCTYPE HTML>
<html lang="zh" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>绘制形状、字符和箭头 · Pine Script 用户手册中文版</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        <meta name="author" content="剑客">
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="9custom.html" />
    
    
    <link rel="prev" href="7bg.html" />
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="輸入並搜尋" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" data-path="../">
            
                <a href="../">
            
                    
                    Introduction
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2" data-path="../Introduction.html">
            
                <a href="../Introduction.html">
            
                    
                    简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3" data-path="../quickstart/">
            
                <a href="../quickstart/">
            
                    
                    快速开始
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="../quickstart/example.html">
            
                <a href="../quickstart/example.html">
            
                    
                    Pine Script 示例
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.2" data-path="../quickstart/studyVsStrategy.html">
            
                <a href="../quickstart/studyVsStrategy.html">
            
                    
                    “study” 与 “strategy”
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.3" data-path="../quickstart/model.html">
            
                <a href="../quickstart/model.html">
            
                    
                    Pine Script 执行模型
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.4" data-path="../quickstart/series.html">
            
                <a href="../quickstart/series.html">
            
                    
                    序列
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.5" data-path="../quickstart/understanding.html">
            
                <a href="../quickstart/understanding.html">
            
                    
                    理解 Pine Script
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.6" data-path="../quickstart/editor.html">
            
                <a href="../quickstart/editor.html">
            
                    
                    Pine 编辑器
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.3.7" data-path="../quickstart/next.html">
            
                <a href="../quickstart/next.html">
            
                    
                    下一步
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.4" data-path="../fundamentals/">
            
                <a href="../fundamentals/">
            
                    
                    语言基础
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.4.1" data-path="../fundamentals/1structure.html">
            
                <a href="../fundamentals/1structure.html">
            
                    
                    脚本结构
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.2" data-path="../fundamentals/2version.html">
            
                <a href="../fundamentals/2version.html">
            
                    
                    版本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.3" data-path="../fundamentals/3comment.html">
            
                <a href="../fundamentals/3comment.html">
            
                    
                    注释
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.4" data-path="../fundamentals/4identifier.html">
            
                <a href="../fundamentals/4identifier.html">
            
                    
                    标识符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.5" data-path="../fundamentals/5line.html">
            
                <a href="../fundamentals/5line.html">
            
                    
                    换行
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.6" data-path="../fundamentals/6type.html">
            
                <a href="../fundamentals/6type.html">
            
                    
                    类型系统
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.7" data-path="../fundamentals/7operator.html">
            
                <a href="../fundamentals/7operator.html">
            
                    
                    运算符
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.8" data-path="../fundamentals/8function.html">
            
                <a href="../fundamentals/8function.html">
            
                    
                    函数和注解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.9" data-path="../fundamentals/9expressions.html">
            
                <a href="../fundamentals/9expressions.html">
            
                    
                    表达式、声明和语句
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.10" data-path="../fundamentals/10function.html">
            
                <a href="../fundamentals/10function.html">
            
                    
                    函数声明
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.4.11" data-path="../fundamentals/11model.html">
            
                <a href="../fundamentals/11model.html">
            
                    
                    执行模型
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.5" data-path="../features/">
            
                <a href="../features/">
            
                    
                    基本功能
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.5.1" data-path="../features/1alert.html">
            
                <a href="../features/1alert.html">
            
                    
                    警报
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.2" data-path="../features/2array.html">
            
                <a href="../features/2array.html">
            
                    
                    数组
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.3" data-path="../features/3barstate.html">
            
                <a href="../features/3barstate.html">
            
                    
                    柱状态，内置变量 barstate.*
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.4" data-path="../features/4color.html">
            
                <a href="../features/4color.html">
            
                    
                    颜色
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.5" data-path="../features/5context.html">
            
                <a href="../features/5context.html">
            
                    
                    上下文切换和 security 函数
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.6" data-path="../features/6drawing.html">
            
                <a href="../features/6drawing.html">
            
                    
                    绘图
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.7" data-path="../features/7extend.html">
            
                <a href="../features/7extend.html">
            
                    
                    延长和扩展交易数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.8" data-path="../features/8reapint.html">
            
                <a href="../features/8reapint.html">
            
                    
                    指标重绘
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.9" data-path="../features/9nonstandard.html">
            
                <a href="../features/9nonstandard.html">
            
                    
                    非标准图表类型数据
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.10" data-path="../features/10session.html">
            
                <a href="../features/10session.html">
            
                    
                    交易时段和时间信息
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.11" data-path="../features/11strategies.html">
            
                <a href="../features/11strategies.html">
            
                    
                    策略
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.5.12" data-path="../features/12table.html">
            
                <a href="../features/12table.html">
            
                    
                    图表
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.6" data-path="./">
            
                <a href="./">
            
                    
                    注解概览
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.6.1" data-path="1study.html">
            
                <a href="1study.html">
            
                    
                    指标注解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.2" data-path="2plot.html">
            
                <a href="2plot.html">
            
                    
                    绘图注解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.3" data-path="3input.html">
            
                <a href="3input.html">
            
                    
                    脚本输入
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.4" data-path="4price.html">
            
                <a href="4price.html">
            
                    
                    价格水平，hline
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.5" data-path="5fill.html">
            
                <a href="5fill.html">
            
                    
                    用 fill 填充背景
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.6" data-path="6barcolor.html">
            
                <a href="6barcolor.html">
            
                    
                    使用 barcolor 为 series 着色
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.7" data-path="7bg.html">
            
                <a href="7bg.html">
            
                    
                    使用 bgcolor 进行背景着色
            
                </a>
            

            
        </li>
    
        <li class="chapter active" data-level="1.6.8" data-path="8shape.html">
            
                <a href="8shape.html">
            
                    
                    绘制形状、字符和箭头
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.6.9" data-path="9custom.html">
            
                <a href="9custom.html">
            
                    
                    定制 OHLC 柱和蜡烛
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.7" data-path="../debugging/">
            
                <a href="../debugging/">
            
                    
                    调试
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.7.1" data-path="../debugging/1introduction.html">
            
                <a href="../debugging/1introduction.html">
            
                    
                    指标注解
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.2" data-path="../debugging/2land.html">
            
                <a href="../debugging/2land.html">
            
                    
                    功能位置
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.3" data-path="../debugging/3num.html">
            
                <a href="../debugging/3num.html">
            
                    
                    显示数值
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.4" data-path="../debugging/4str.html">
            
                <a href="../debugging/4str.html">
            
                    
                    显示字符串
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.5" data-path="../debugging/5conditions.html">
            
                <a href="../debugging/5conditions.html">
            
                    
                    调试条件
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.6" data-path="../debugging/6fn.html">
            
                <a href="../debugging/6fn.html">
            
                    
                    从内部函数调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.7" data-path="../debugging/7for.html">
            
                <a href="../debugging/7for.html">
            
                    
                    从“for”循环内部调试
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.7.8" data-path="../debugging/8tips.html">
            
                <a href="../debugging/8tips.html">
            
                    
                    提示
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.8" data-path="../publishing/">
            
                <a href="../publishing/">
            
                    
                    发布脚本
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.8.1" data-path="../publishing/1pvp.html">
            
                <a href="../publishing/1pvp.html">
            
                    
                    公共脚本与私有脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.2" data-path="../publishing/2mode.html">
            
                <a href="../publishing/2mode.html">
            
                    
                    发布模式
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.3" data-path="../publishing/3ps.html">
            
                <a href="../publishing/3ps.html">
            
                    
                    如何发布脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.8.4" data-path="../publishing/4us.html">
            
                <a href="../publishing/4us.html">
            
                    
                    如何更新脚本
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.9" data-path="../library/">
            
                <a href="../library/">
            
                    
                    公共库
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.9.1" data-path="../library/1description.html">
            
                <a href="../library/1description.html">
            
                    
                    描述
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.2" data-path="../library/2copy.html">
            
                <a href="../library/2copy.html">
            
                    
                    将脚本从公共库复制到您的个人库
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.3" data-path="../library/3editing.html">
            
                <a href="../library/3editing.html">
            
                    
                    编辑来自公共库的脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.4" data-path="../library/4searching.html">
            
                <a href="../library/4searching.html">
            
                    
                    搜索脚本
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.9.5" data-path="../library/5video.html">
            
                <a href="../library/5video.html">
            
                    
                    教学视频
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.10" data-path="../appendix/">
            
                <a href="../appendix/">
            
                    
                    附录
            
                </a>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.10.1" data-path="../appendix/1migration.html">
            
                <a href="../appendix/1migration.html">
            
                    
                    Pine 第 3 版迁移指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.2" data-path="../appendix/2how.html">
            
                <a href="../appendix/2how.html">
            
                    
                    操作指南
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.10.3" data-path="../appendix/3err.html">
            
                <a href="../appendix/3err.html">
            
                    
                    Pine 的编译和执行错误
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.11" data-path="../more/">
            
                <a href="../more/">
            
                    
                    我可以从哪里获得更多信息？
            
                </a>
            

            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            本書使用 GitBook 釋出
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >绘制形状、字符和箭头</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="&#x7ED8;&#x5236;&#x5F62;&#x72B6;&#x3001;&#x5B57;&#x7B26;&#x548C;&#x7BAD;&#x5934;">&#x7ED8;&#x5236;&#x5F62;&#x72B6;&#x3001;&#x5B57;&#x7B26;&#x548C;&#x7BAD;&#x5934;</h1>
<p>&#x5728;&#x6709;&#x4E9B;&#x60C5;&#x51B5;&#x4E0B;&#xFF0C;&#x4F60;&#x9700;&#x8981;&#x5728;&#x56FE;&#x8868;&#x4E0A;&#x6807;&#x8BB0;&#x6216;&#x7A81;&#x51FA;&#x7279;&#x5B9A;&#x7684;&#x67F1;&#x56FE;&#xFF0C;&#x800C;&#x4F7F;&#x7528; plot &#x7684;&#x5E38;&#x89C4;&#x7EBF;&#x56FE;&#x53EF;&#x80FD;&#x4E0D;&#x662F;&#x6700;&#x4F73;&#x9009;&#x62E9;&#x3002;&#x5C3D;&#x7BA1;&#x4F7F;&#x7528; plot.style_circles &#x6216; style_cross &#x7684; plot &#x53EF;&#x80FD;&#x505A;&#x5230;&#x8FD9;&#x4E00;&#x70B9;&#xFF0C;&#x4F46;&#x4F7F;&#x7528; plotshape&#x3001;plotchar &#x548C; plotarrow &#x7684;&#x6CE8;&#x89E3;&#x51FD;&#x6570;&#x5F80;&#x5F80;&#x66F4;&#x5BB9;&#x6613;&#x3002;</p>
<h2 id="&#x7ED8;&#x5236;&#x5F62;&#x72B6;">&#x7ED8;&#x5236;&#x5F62;&#x72B6;</h2>
<p>plotshape &#x51FD;&#x6570;&#x53EF;&#x4EE5;&#x663E;&#x793A;&#x5404;&#x79CD;&#x5F62;&#x72B6;&#x3002;&#x4E0B;&#x9762;&#x7684;&#x811A;&#x672C;&#x5C06;&#x5728;&#x6240;&#x6709;&#x7EFF;&#x6761;&#x4E0A;&#x65B9;&#x753B;&#x4E00;&#x4E2A;&quot;X&quot;&#xFF1A;</p>
<pre><code>study(&apos;plotshape example 1&apos;, overlay=true)
data = close &gt;= open
plotshape(data, style=shape.xcross)
</code></pre><p><img src="../img/48ps/Plotshape_1.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>&#x7B2C;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#xFF0C;data&#xFF0C;&#x88AB;&#x7528;&#x4F5C;&#x4E00;&#x7CFB;&#x5217;&#x7684;&#x903B;&#x8F91;&#x503C;&#x3002;&#x6BCF;&#x4E2A;&#x771F;&#x503C;&#x90FD;&#x4F1A;&#x753B;&#x4E0A;&#x5341;&#x5B57;&#x3002;&#x5728;&#x5047;&#x503C;&#x6216;&#x7EB3;&#x503C;&#x4E0A;&#x4E0D;&#x753B;&#x4EFB;&#x4F55;&#x4E1C;&#x897F;&#x3002;&#x4F60;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4E00;&#x4E2A; series &#x7684;&#x903B;&#x8F91;&#x503C;&#x6216;&#x6570;&#x5B57;&#x4F5C;&#x4E3A; plotshape &#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#x3002;0 &#x6216; na &#x88AB;&#x8BA4;&#x4E3A;&#x662F;&#x4E00;&#x4E2A;&#x5047;&#x503C;&#xFF0C;&#x4EFB;&#x4F55;&#x5176;&#x4ED6;&#x503C;&#x90FD;&#x88AB;&#x8BA4;&#x4E3A;&#x662F;&#x771F;&#x503C;&#x3002;</p>
<p>&#x901A;&#x8FC7;&#x6539;&#x53D8; style &#x53C2;&#x6570;&#x7684;&#x503C;&#xFF0C;&#x53EF;&#x4EE5;&#x6539;&#x53D8;&#x5F62;&#x72B6;&#x3002;&#x53EF;&#x7528;&#x7684;&#x6837;&#x5F0F;&#x6709;&#xFF1A;</p>
<table>
<thead>
<tr>
<th style="text-align:left">&#x5F62;&#x72B6;&#x540D;&#x79F0;</th>
<th style="text-align:left">&#x5F62;&#x72B6;</th>
<th style="text-align:left">&#x6587;&#x5B57;&#x5F62;&#x72B6;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:left">shape.xcross</td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_xcross.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
<td style="text-align:left"><img src="../img/48ps/s/Xcross_with_text.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
</tr>
<tr>
<td style="text-align:left">shape.cross</td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_cross.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
<td style="text-align:left"><img src="../img/48ps/s/Cross_with_text.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
</tr>
<tr>
<td style="text-align:left">shape.circle</td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_circle.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
<td style="text-align:left"><img src="../img/48ps/s/Circle_with_text.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
</tr>
<tr>
<td style="text-align:left">shape.triangleup</td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_triangleup.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
<td style="text-align:left"><img src="../img/48ps/s/Triangleup_with_text.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
</tr>
<tr>
<td style="text-align:left">shape.triangledown</td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_triangledown.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
<td style="text-align:left"><img src="../img/48ps/s/Triangledown_with_text.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
</tr>
<tr>
<td style="text-align:left">shape.flag</td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_flag.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
<td style="text-align:left"><img src="../img/48ps/s/Flag_with_text.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
</tr>
<tr>
<td style="text-align:left">shape.arrowup</td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_arrowup.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
<td style="text-align:left"><img src="../img/48ps/s/Arrowup_with_text.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
</tr>
<tr>
<td style="text-align:left">shape.arrowdown</td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_arrowdown.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_arrowdown.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
</tr>
<tr>
<td style="text-align:left">shape.square</td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_square.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
<td style="text-align:left"><img src="../img/48ps/s/Square_with_text.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
</tr>
<tr>
<td style="text-align:left">shape.diamond</td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_diamond.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
<td style="text-align:left"><img src="../img/48ps/s/Diamond_with_text.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
</tr>
<tr>
<td style="text-align:left">shape.labelup</td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_labelup.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
<td style="text-align:left"><img src="../img/48ps/s/Labelup_with_text.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
</tr>
<tr>
<td style="text-align:left">shape.labeldown</td>
<td style="text-align:left"><img src="../img/48ps/s/Plotshape_labeldown.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
<td style="text-align:left"><img src="../img/48ps/s/Labeldown_with_text.png" alt="&#x793A;&#x4F8B;&#x56FE;"></td>
</tr>
</tbody>
</table>
<p><br></p>
<p>plotshape &#x7ED8;&#x5236;&#x56FE;&#x5F62;&#x7684;&#x9ED8;&#x8BA4;&#x4F4D;&#x7F6E;&#x662F;&#x5728;&#x67F1;&#x56FE;&#x4E0A;&#x65B9;&#x3002;&#x8981;&#x7ED8;&#x5236;&#x5230;&#x5176;&#x4ED6;&#x4F4D;&#x7F6E;&#xFF0C;&#x8BF7;&#x4F7F;&#x7528; location &#x53C2;&#x6570;&#x3002;&#x4E0B;&#x9762;&#x7684;&#x811A;&#x672C;&#x5728;&#x7EFF;&#x67F1;&#x4E0A;&#x65B9;&#x753B;&#x4E00;&#x4E2A;&#x7EFF;&#x8272;&#x7684; shape.triangleup&#xFF0C;&#x5728;&#x7EA2;&#x67F1;&#x4E0B;&#x65B9;&#x753B;&#x4E00;&#x4E2A;&#x7EA2;&#x8272;&#x7684; shape.triangledown&#xFF1A;</p>
<pre><code>//@version=4
study(&apos;plotshape example 2&apos;, overlay=true)
data = close &gt;= open
plotshape(data, style=shape.triangleup,
                 location=location.abovebar, color=color.green)
plotshape(not data, style=shape.triangledown,
                 location=location.belowbar, color=color.red)
</code></pre><p><img src="../img/48ps/Plotshape_example_2.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>location &#x53C2;&#x6570;&#x7684;&#x53EF;&#x7528;&#x503C;&#x662F;&#xFF1A;</p>
<ul>
<li>location.overbar - &#x5728;&#x67F1;&#x4E0A;&#x9762;</li>
<li>location.belowbar - &#x5728;&#x67F1;&#x4E0B;&#x9762;</li>
<li>location.top - &#x811A;&#x672C; y &#x7A7A;&#x95F4;&#x7684;&#x9876;&#x90E8;</li>
<li>location.bottom - &#x811A;&#x672C; y &#x7A7A;&#x95F4;&#x7684;&#x5E95;&#x90E8;&#x3002;</li>
<li><p>location.absolute - &#x5728; y &#x7A7A;&#x95F4;&#x7684;&#x4EFB;&#x4F55;&#x4F4D;&#x7F6E;</p>
<p>&#x5F53;&#x9700;&#x8981;&#x5728;&#x811A;&#x672C;&#x7684; y &#x7A7A;&#x95F4;&#x4E2D;&#x66F4;&#x7CBE;&#x786E;&#x5730;&#x5B9A;&#x4F4D;&#x5F62;&#x72B6;&#x65F6;&#x53EF;&#x4EE5;&#x4F7F;&#x7528; location.absolute&#x3002;&#x7136;&#x540E;&#x51FD;&#x6570;&#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#x88AB;&#x7528;&#x4F5C; y &#x5750;&#x6807;&#x3002;</p>
</li>
</ul>
<p>&#x201C;plotshape example 2&#x201D; &#x8BF4;&#x660E;&#x4E86;&#x5982;&#x4F55;&#x4F7F;&#x7528; color &#x53C2;&#x6570;&#x548C;&#x8868;&#x8FBE;&#x5F0F;&#x6765;&#x5B9A;&#x4E49;&#x5F62;&#x72B6;&#x7684;&#x989C;&#x8272;&#xFF0C;&#x8868;&#x8FBE;&#x5F0F;&#x5C06;&#x6839;&#x636E;&#x8FD0;&#x884C;&#x65F6;&#x7684;&#x6761;&#x4EF6;&#x6765;&#x8BA1;&#x7B97;&#x5F62;&#x72B6;&#x7684;&#x989C;&#x8272;&#x3002;&#x6BD4;&#x5982;&#x8BF4;&#x3002;</p>
<pre><code>//@version=4
study(&apos;plotshape example 3&apos;, overlay=true)
data = close &gt;= open
plotshape(true, style=shape.flag, color=data ? color.green : color.red)
</code></pre><p><img src="../img/48ps/Plotshape_example_3.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>&#x5728;&#x7ED9;&#x5B9A;&#x7684;&#x4F8B;&#x5B50;&#x4E2D;&#xFF0C;&#x51FD;&#x6570; plotshape &#x7684;&#x7B2C;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#x662F; true&#xFF0C;&#x8FD9;&#x610F;&#x5473;&#x7740;&#x6BCF;&#x4E2A;&#x67F1;&#x90FD;&#x4F1A;&#x663E;&#x793A;&#x4E00;&#x4E2A;&#x5F62;&#x72B6;&#x3002;&#x989C;&#x8272;&#x662F;&#x7531; color=data ? color.green : color.red &#x8868;&#x8FBE;&#x5F0F;&#x8BA1;&#x7B97;&#x7684;&#x3002;</p>
<p>plotshape &#x51FD;&#x6570;&#x7684;&#x5176;&#x4ED6;&#x7279;&#x70B9;:</p>
<ul>
<li>&#x4F7F;&#x7528; title &#x53C2;&#x6570;&#x8BBE;&#x7F6E;&#x663E;&#x793A;&#x7684; series &#x6570;&#x636E;&#x7684;&#x540D;&#x79F0;&#x3002;</li>
<li>&#x4F7F;&#x7528; offset &#x53C2;&#x6570;&#x5C06;&#x4E00;&#x7CFB;&#x5217;&#x5F62;&#x72B6;&#x5411;&#x5DE6;/&#x53F3;&#x79FB;&#x52A8;&#x3002;</li>
<li>&#x7528; transp &#x53C2;&#x6570;&#x8BBE;&#x7F6E;&#x56FE;&#x5F62;&#x7684;&#x900F;&#x660E;&#x5EA6;&#x3002;</li>
<li>&#x4F7F;&#x7528;&#x6587;&#x672C;&#x53C2;&#x6570;&#x663E;&#x793A;&#x5F62;&#x72B6;&#x4E0A;&#x65B9;/&#x4E0B;&#x65B9;&#x7684;&#x7B80;&#x77ED;&#x6587;&#x672C;&#x3002;&#x4F60;&#x53EF;&#x4EE5;&#x7528; n &#x6765;&#x5206;&#x9694;&#x6587;&#x672C;&#x884C;&#x3002;</li>
</ul>
<h2 id="&#x7ED8;&#x5236;&#x5B57;&#x7B26;">&#x7ED8;&#x5236;&#x5B57;&#x7B26;</h2>
<p>plotshape &#x548C; plotchar &#x7684;&#x4E3B;&#x8981;&#x533A;&#x522B;&#x5728;&#x4E8E;&#xFF0C;&#x5728; plotchar &#x4E2D;&#xFF0C;&#x5F62;&#x72B6;&#x662F;&#x7528; char &#x53C2;&#x6570;&#x5B9A;&#x4E49;&#x7684; ASCII &#x6216; Unicode &#x7B26;&#x53F7;&#xFF08;&#x53EA;&#x8981; TradingView &#x6807;&#x51C6;&#x5B57;&#x4F53;&#x652F;&#x6301;&#xFF09;&#x3002;&#x4F8B;&#x5982;:</p>
<pre><code>study(&apos;plotchar example&apos;, overlay=true)
data = close &gt;= open
plotchar(data, char=&apos;a&apos;)
</code></pre><p><img src="../img/48ps/Plotchar_example_1.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>&#x9ED8;&#x8BA4;&#x5B57;&#x7B26;&#x662F; &#x2605; &#xFF08;U+2605&#xFF0C;&quot;BLACK STAR&quot;&#x5B57;&#x7B26;&#xFF09;&#x3002;&#x53EF;&#x4EE5;&#x4F7F;&#x7528;&#x4EFB;&#x4F55;&#x5B57;&#x6BCD;&#x6216;&#x6570;&#x5B57;&#x4EE5;&#x53CA;&#x8BB8;&#x591A;&#x7B26;&#x53F7;&#xFF0C;&#x4F8B;&#x5982;&#xFF1A;&#x2764;&#x3001;&#x2600;&#x3001;&#x20AC;&#x3001;&#x2691;&#x3001;&#x2744;&#x3001;&#x25C6;&#x3001;&#x2B06;&#x3001;&#x2B07;&#x3002;&#x652F;&#x6301;&#x7684;&#x5B57;&#x7B26;&#x4EE3;&#x7801;&#x662F; Trebuchet MS &#x5B57;&#x4F53;&#x7CFB;&#x5217;&#x7684;&#x5B57;&#x7B26;&#x4EE3;&#x7801;&#x3002;</p>
<p>&#x4E0B;&#x4E00;&#x4E2A;&#x4F8B;&#x5B50;&#x4F7F;&#x7528;&quot;SNOWFLAKE&quot;&#xFF08;&#x2744;&#xFF0C;U+2744&#xFF09;&#x5B57;&#x7B26;:</p>
<pre><code>study(&apos;plotchar example&apos;, overlay=true)
data = close &gt;= open
plotchar(data, char=&apos;&#x2744;&apos;)
</code></pre><p><img src="../img/48ps/Plotchar_example_2.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>&#x4E0E; plotshape &#x4E00;&#x6837;&#xFF0C; plotchar &#x51FD;&#x6570;&#x5141;&#x8BB8;&#x4F60;:</p>
<ul>
<li>&#x4F7F;&#x7528; color &#x53C2;&#x6570;&#xFF0C;&#x7528;&#x5E38;&#x6570;&#x6216;&#x590D;&#x6742;&#x7684;&#x7B97;&#x672F;&#x8868;&#x8FBE;&#x5F0F;&#x6765;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x5F62;&#x72B6;&#x7684;&#x989C;&#x8272;&#x3002;</li>
<li>&#x7528; location &#x53C2;&#x6570;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x5F62;&#x72B6;&#x7684;&#x4F4D;&#x7F6E;&#x3002;</li>
<li>&#x7528; title &#x53C2;&#x6570;&#x8BBE;&#x7F6E;&#x4E00;&#x4E2A;&#x663E;&#x793A;&#x7684;&#x6570;&#x636E; series &#x7684;&#x540D;&#x79F0;&#x3002;</li>
<li>&#x4F7F;&#x7528; offset &#x53C2;&#x6570;&#x5C06;&#x4E00;&#x7CFB;&#x5217;&#x5F62;&#x72B6;&#x5411;&#x5DE6;/&#x53F3;&#x79FB;&#x52A8;&#x3002;</li>
<li>&#x4F7F;&#x7528; transp &#x53C2;&#x6570;&#x8BBE;&#x7F6E;&#x5F62;&#x72B6;&#x7684;&#x900F;&#x660E;&#x5EA6;&#x3002;</li>
<li>&#x4F7F;&#x7528; text &#x53C2;&#x6570;&#x5728;&#x5F62;&#x72B6;&#x7684;&#x4E0A;&#x65B9;/&#x4E0B;&#x65B9;&#x663E;&#x793A;&#x7B80;&#x77ED;&#x7684;&#x6587;&#x672C;&#x3002;&#x4F60;&#x53EF;&#x4EE5;&#x7528; \n &#x6765;&#x5206;&#x9694;&#x6587;&#x672C;&#x884C;&#x3002;</li>
</ul>
<h2 id="&#x7ED8;&#x5236;&#x7BAD;&#x5934;">&#x7ED8;&#x5236;&#x7BAD;&#x5934;</h2>
<p>plotarrow &#x6CE8;&#x89E3;&#x51FD;&#x6570;&#x5141;&#x8BB8;&#x5728;&#x56FE;&#x8868;&#x4E0A;&#x663E;&#x793A;&#x5411;&#x4E0A;/&#x5411;&#x4E0B;&#x7684;&#x7BAD;&#x5934;&#x3002;&#x7BAD;&#x5934;&#x7684;&#x957F;&#x5EA6;&#x5728;&#x6BCF;&#x4E2A;&#x67F1;&#x56FE;&#x4E0A;&#x90FD;&#x4E0D;&#x4E00;&#x6837;&#xFF0C;&#x662F;&#x7531;&#x7B2C;&#x4E00;&#x4E2A;&#x53C2;&#x6570;&#x7684;&#x503C;&#x8BA1;&#x7B97;&#x51FA;&#x6765;&#x7684;&#x3002;</p>
<p>plotarrow &#x51FD;&#x6570;&#x7684;&#x7B2C;&#x4E00;&#x4E2A; series &#x53C2;&#x6570;&#x7528;&#x4E8E;&#x5728;&#x56FE;&#x8868;&#x4E0A;&#x653E;&#x7F6E;&#x7BAD;&#x5934;&#xFF0C;&#x5176;&#x903B;&#x8F91;&#x5982;&#x4E0B;&#x3002;</p>
<ul>
<li>&#x5982;&#x679C;&#x5F53;&#x524D;&#x6761;&#x5F62;&#x56FE;&#x4E0A;&#x7684; series &#x503C;&#x5927;&#x4E8E;0&#xFF0C;&#x90A3;&#x4E48;&#x5C06;&#x7ED8;&#x5236;&#x4E00;&#x4E2A;&#x5411;&#x4E0A;&#x7684;&#x7BAD;&#x5934;&#xFF0C;&#x5176;&#x957F;&#x5EA6;&#x5C06;&#x4E0E;&#x8BE5;&#x6761;&#x5F62;&#x56FE;&#x4E0A;&#x7684; series &#x503C;&#x4E0E;&#x5176;&#x4ED6; series &#x503C;&#x7684;&#x76F8;&#x5BF9;&#x503C;&#x6210;&#x6B63;&#x6BD4;&#x3002;</li>
<li>&#x5982;&#x679C;&#x5F53;&#x524D;&#x6761;&#x5F62;&#x56FE;&#x4E0A;&#x7684; series &#x503C;&#x5C0F;&#x4E8E; 0&#xFF0C;&#x90A3;&#x4E48;&#x5C06;&#x753B;&#x51FA;&#x4E00;&#x4E2A;&#x5411;&#x4E0B;&#x7684;&#x7BAD;&#x5934;&#xFF0C;&#x5176;&#x957F;&#x5EA6;&#x5C06;&#x4E0E;&#x8BE5;&#x6761;&#x5F62;&#x56FE;&#x4E0A;&#x7684; series &#x503C;&#x4E0E;&#x5176;&#x4ED6; series &#x503C;&#x7684;&#x76F8;&#x5BF9;&#x503C;&#x6210;&#x6BD4;&#x4F8B;&#x3002;</li>
<li>&#x5982;&#x679C;&#x5F53;&#x524D;&#x6761;&#x5F62;&#x56FE;&#x4E0A;&#x7684; series &#x503C;&#x7B49;&#x4E8E; 0 &#x6216; na&#xFF0C;&#x90A3;&#x4E48;&#x7BAD;&#x5934;&#x5C31;&#x4E0D;&#x4F1A;&#x663E;&#x793A;&#x3002;</li>
</ul>
<p>&#x4E0B;&#x9762;&#x662F;&#x4E00;&#x4E2A;&#x7B80;&#x5355;&#x7684;&#x811A;&#x672C;&#xFF0C;&#x8BF4;&#x660E; plotarrow &#x51FD;&#x6570;&#x5982;&#x4F55;&#x5DE5;&#x4F5C;&#xFF1A;</p>
<pre><code>study(&quot;plotarrow example&quot;, overlay=true)
codiff = close - open
plotarrow(codiff, colorup=teal, colordown=orange, transp=40)
</code></pre><p><img src="../img/48ps/Plotarrow_example_1.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>&#x6B63;&#x5982;&#x4F60;&#x6240;&#x770B;&#x5230;&#x7684;&#xFF0C;&#x6536;&#x76D8;-&#x5F00;&#x76D8;&#x4E4B;&#x5DEE;&#x7684;&#x76F8;&#x5BF9;&#x503C;&#x8D8A;&#x5927;&#xFF0C;&#x7BAD;&#x5934;&#x5C31;&#x8D8A;&#x957F;&#x3002;&#x5982;&#x679C;&#x6536;&#x76D8;-&#x5F00;&#x76D8;&#x5927;&#x4E8E;&#x96F6;&#xFF0C;&#x90A3;&#x4E48;&#x5C31;&#x4F1A;&#x5448;&#x73B0;&#x4E00;&#x4E2A;&#x5411;&#x4E0A;&#x7684;&#x7BAD;&#x5934;&#x3002;&#x5F53;&#x6536;&#x76D8;-&#x5F00;&#x76D8;&#x5C0F;&#x4E8E;&#x96F6;&#x65F6;&#xFF0C;&#x5C31;&#x4F1A;&#x5448;&#x73B0;&#x51FA;&#x4E00;&#x4E2A;&#x5411;&#x4E0B;&#x7684;&#x7BAD;&#x5934;&#x3002;</p>
<p>&#x5728;&#x53E6;&#x4E00;&#x4E2A;&#x4F8B;&#x5B50;&#x4E2D;&#xFF0C;&#x6211;&#x4EEC;&#x5C06;&#x4ECE;&#x5185;&#x7F6E;&#x811A;&#x672C;&#x4E2D;&#x7684; Chaikin Oscillator &#x811A;&#x672C;&#x5F00;&#x59CB;&#xFF0C;&#x7528;&#x7BAD;&#x5934;&#x5C06;&#x5176;&#x663E;&#x793A;&#x5728;&#x56FE;&#x8868;&#x4E0A;&#x65B9;&#x7684;&#x8986;&#x76D6;&#x5C42;&#xFF1A;</p>
<pre><code>study(&quot;Chaikin Oscillator Arrows&quot;, overlay=true)
short = input(3,minval=1), long = input(10,minval=1)
osc = ema(accdist, short) - ema(accdist, long)
plotarrow(osc)
</code></pre><p><img src="../img/48ps/Plotarrow_example_2.png" alt="&#x793A;&#x4F8B;&#x56FE;"></p>
<p>&#x8FD9;&#x5F20;&#x622A;&#x56FE;&#x663E;&#x793A;&#x4E86;&#x539F;&#x59CB;&#x7684; Chaikin Oscillator &#x4E0E;&#x811A;&#x672C;&#x4E00;&#x8D77;&#xFF0C;&#x4EE5;&#x4FBF;&#x66F4;&#x597D;&#x5730;&#x7406;&#x89E3;&#x3002;</p>
<p>&#x5982;&#x524D;&#x6240;&#x8FF0;&#xFF0C;&#x7BAD;&#x5934;&#x7684;&#x9AD8;&#x5EA6;&#x4E0E;&#x7B2C;&#x4E00;&#x4E2A; series &#x53C2;&#x6570;&#x7684;&#x76F8;&#x5BF9;&#x503C;&#x6210;&#x6B63;&#x6BD4;&#x3002;&#x7BAD;&#x5934;&#x7684;&#x6700;&#x5927;&#x548C;&#x6700;&#x5C0F;&#x53EF;&#x80FD;&#x5C3A;&#x5BF8;&#xFF08;&#x4EE5;&#x50CF;&#x7D20;&#x4E3A;&#x5355;&#x4F4D;&#xFF09;&#x53EF;&#x4EE5;&#x901A;&#x8FC7; minheight &#x548C; maxheight &#x53C2;&#x6570;&#x8BBE;&#x7F6E;&#x3002;</p>
<p>&#x6B64;&#x5916;&#xFF0C;plotarrow &#x529F;&#x80FD;&#x5141;&#x8BB8;&#x4F60;&#xFF1A;</p>
<ul>
<li>&#x4F7F;&#x7528; title &#x53C2;&#x6570;&#x8BBE;&#x7F6E;&#x663E;&#x793A;&#x7684;&#x6570;&#x636E;series&#x7684;&#x540D;&#x79F0;&#x3002;</li>
<li>&#x4F7F;&#x7528; colorup &#x53C2;&#x6570;&#x8BBE;&#x7F6E;&#x5411;&#x4E0A;&#x7BAD;&#x5934;&#x7684;&#x989C;&#x8272;&#x3002;</li>
<li>&#x4F7F;&#x7528; colordown &#x53C2;&#x6570;&#x8BBE;&#x7F6E;&#x5411;&#x4E0B;&#x7BAD;&#x5934;&#x7684;&#x989C;&#x8272;&#x3002;</li>
<li>&#x4F7F;&#x7528;&#x504F;&#x79FB;&#x53C2;&#x6570;&#x5C06;&#x4E00;&#x7CFB;&#x5217;&#x7684;&#x7BAD;&#x5934;&#x5411;&#x5DE6;/&#x53F3;&#x79FB;&#x52A8;&#x3002;</li>
<li>&#x7528; transp &#x53C2;&#x6570;&#x8BBE;&#x7F6E;&#x7BAD;&#x5934;&#x7684;&#x900F;&#x660E;&#x5EA6;&#x3002;</li>
</ul>
<p>&#x9700;&#x8981;&#x6CE8;&#x610F;&#x7684;&#x662F;&#xFF0C;colorup &#x548C; colordown &#x53C2;&#x6570;&#x5FC5;&#x987B;&#x63A5;&#x6536;&#x4E00;&#x4E2A;&#x989C;&#x8272;&#x7C7B;&#x578B;&#x7684;&#x5E38;&#x91CF;&#x503C;&#x3002;&#x4E0D;&#x5141;&#x8BB8;&#x4F7F;&#x7528;&#x8868;&#x8FBE;&#x5F0F;&#x6765;&#x786E;&#x5B9A;&#x989C;&#x8272;&#xFF08;&#x5982; plot&#x3001;plotshape &#x6216; plotchar &#x4E2D;&#x7684;&#x505A;&#x6CD5;&#xFF09;&#x3002;</p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                <a href="7bg.html" class="navigation navigation-prev " aria-label="Previous page: 使用 bgcolor 进行背景着色">
                    <i class="fa fa-angle-left"></i>
                </a>
                
                
                <a href="9custom.html" class="navigation navigation-next " aria-label="Next page: 定制 OHLC 柱和蜡烛">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"绘制形状、字符和箭头","level":"1.6.8","depth":2,"next":{"title":"定制 OHLC 柱和蜡烛","level":"1.6.9","depth":2,"path":"annotations/9custom.md","ref":"./annotations/9custom.md","articles":[]},"previous":{"title":"使用 bgcolor 进行背景着色","level":"1.6.7","depth":2,"path":"annotations/7bg.md","ref":"./annotations/7bg.md","articles":[]},"dir":"ltr"},"config":{"plugins":["livereload"],"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"theme":"default","author":"剑客","pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"variables":{},"title":"Pine Script 用户手册中文版","language":"zh","gitbook":"*","description":"Pine Script 文档中文翻译"},"file":{"path":"annotations/8shape.md","mtime":"2021-06-13T11:32:58.950Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2021-06-14T07:42:18.199Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

